<br />
<a class="sexybutton sexysimple sexymagenta" href="/adminarea/orders/page/<?php echo $this->page ?>/status/new">New Order</a>  
<a class="sexybutton sexysimple sexymagenta" href="/adminarea/orders/page/<?php echo $this->page ?>/status/processing">Processing Order</a>  
<a class="sexybutton sexysimple sexymagenta" href="/adminarea/orders/page/<?php echo $this->page ?>/status/delivered">Delivered Order</a> 
<a class="sexybutton sexysimple sexymagenta" href="/adminarea/orders/page/<?php echo $this->page ?>/status/rejected">Rejected Order</a> <br /> <br /> 
	
<table width="100%" cellspacing="0" cellpadding="8" class="newsfeed" id="myTable" border="1"  valign="top">
<thead>
	<tr>
		<th>Restaurant</th>
		<th>User</th>
		<th>Address</th>
		<th>Notes</th>
		<th>Amount</th>
		<th>Added</th>
		<th>CC</th>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
	</tr>
</thead>	
<tbody>

	<?php
	foreach ($this->allItems as $oItem)
	{
		?>
	<tr id="row_<?php echo $oItem->id; ?>" valign="top">

		<td class="{field: 'name'}"><?php echo $this->escape($oItem->restaurant_name); ?></td>
		<td class="{field: 'price'}"><?php echo $this->escape($oItem->user_name); ?></td>
		<td class="{field: 'price'}"><?php echo $this->escape($oItem->address); ?><br />
		<?php echo $this->escape($oItem->city); ?><br />
		<?php echo $this->escape($oItem->state); ?> <br /><br />
		<?php echo $this->escape($oItem->phone); ?>
		
		</td>
		<td class="{field: 'price'}"><?php echo $this->escape($oItem->notes); ?></td>
		<td class="{field: 'price'}"><?php echo $this->escape($oItem->total_amount); ?></td>
		<td class="{field: 'price'}"><?php echo $this->escape($oItem->added); ?></td>
		<td class="{field: 'price'}"><?php echo $this->escape($oItem->coupon_code_id); ?></td>


		<td><a href="/adminarea/vieworder/id/<?php echo $oItem->id; ?>" class="sexybutton sexysimple sexymagenta">View</a></td>
<?php 		
//		<td><a href="/adminarea/editorder/id/<?php echo $oItem->id; " class="sexybutton sexysimple sexymagenta">Edit</a></td>
?>		<td class="del_element"> &nbsp;&nbsp; <a class="sexybutton sexysimple sexymagenta delete_order" id="<?php echo $oItem->id; ?>"
			href="/adminarea/updateorder/id/<?php echo $oItem->id ?>/status/reject"><span class="delete">Delete</span></a></span></a></td>
	</tr>
	<?php
	}
	?>
	
</tbody>	
</table>

	<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>